package com.happok.onlineclass.usermanagement.feign.service;

import com.happok.common.result.CommonResult;
import org.springframework.http.ResponseEntity;

import java.net.URISyntaxException;
import java.util.List;
import java.util.Map;

/**
 * 接口分类                        yapi 分类文件夹
 * 功能说明
 *
 * @author : chenac
 * @module 项目名称/模块名          yapi 项目组/子项目
 * @date : 2021/9/24 15:51
 */
public interface CustomFormService {
    /**
     * 添加表单记录
     *
     * @param orgId
     * @author: chenac
     * @date:  15:53
     * @execption:
     * @return: org.springframework.http.ResponseEntity<com.happok.common.result.CommonResult>
     */
    String addFormRecord(Integer orgId, String customFormType, Map<String, Object> extendData) throws URISyntaxException;

    /**
     * 更新表单记录
     *
     * @param orgId
     * @author: chenac
     * @date:  15:53
     * @execption:
     * @return: org.springframework.http.ResponseEntity<com.happok.common.result.CommonResult>
     */
    ResponseEntity<CommonResult> updateFormRecord(String user, Integer orgId, String recordId, String customFormType, Map<String, Object> extendData) throws URISyntaxException;


    /**
     * 查询单条表单记录
     *
     * @author: chenac
     * @date:  15:53
     * @execption:
     * @return: org.springframework.http.ResponseEntity<com.happok.common.result.CommonResult>
     */
    Map<String, Object> getFormRecord(String recordId, String customFormType) throws URISyntaxException;

    /**
     * 批量查询表单记录
     *
     * @param customFormType
     * @param extendData
     * @author: chenac
     * @date:  17:43
     * @execption:
     * @return: java.util.List<java.lang.Integer>
     */
    List<Integer> listFormRecord(String customFormType, Map<String, Object> extendData) throws URISyntaxException;
}